package cn.zo01.www;

import java.util.Scanner;

public class _02_Scanner {
    public static void main(String[] args) {
        double sum = 0,max=0,min=Double.MAX_VALUE;
        int m = 0;
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextDouble()){
            double a = sc.nextDouble();
            m = m + 1;
            sum = sum + a;
            max = Math.max(max, a);
            min = Math.min(min, a);
        }
        System.out.println("你一个输入了'"+m+"'个数"+"\n其中总和是："+sum+"\n平均数是："+(sum/m)+"\n最大值是："+max+"\n最小值是："+min);
        sc.close();
    }
}
